package com.elitedatai.mchtest.manage.repository;

import com.elitedatai.mchtest.manage.model.entity.UserEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;


public interface UserRepository extends JpaRepository<UserEntity, Integer> {
    UserEntity findByUsername(String username);

    Page<UserEntity> findByWorkspaceId(String workspaceId, Pageable pageable);
}
